home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / makefile < prev    next >
Encoding:
Makefile  |  1994-12-17  |  30.6 KB  |  858 lines

  1. # Makefile generated by "configure.bat"
  2. LONGARGS = gcc:ar 
  3. CC=gcc 
  4. host_alias=go32 
  5. target_alias=go32 
  6. # Makefile for the GNU linker ld (version 2)
  7. # Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
  8.  
  9. # This file is part of GNU ld.
  10.  
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23.  
  24. srcdir = .
  25. objdir = .
  26.  
  27. prefix = /usr/local
  28.  
  29. program_transform_name =
  30. exec_prefix = $(prefix)
  31. bindir = $(exec_prefix)/bin
  32. libdir = $(exec_prefix)/lib
  33. tooldir = $(exec_prefix)/$(target_alias)
  34. datadir = $(prefix)/lib
  35. mandir = $(prefix)/man
  36. man1dir = $(mandir)/man1
  37. man2dir = $(mandir)/man2
  38. man3dir = $(mandir)/man3
  39. man4dir = $(mandir)/man4
  40. man5dir = $(mandir)/man5
  41. man6dir = $(mandir)/man6
  42. man7dir = $(mandir)/man7
  43. man8dir = $(mandir)/man8
  44. man9dir = $(mandir)/man9
  45. infodir = $(prefix)/info
  46. includedir = $(prefix)/include
  47. docdir = $(datadir)/doc
  48. # We put the scripts in the directory $(scriptdir)/ldscripts.
  49. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  50. # directives need to be different for native and cross linkers.
  51. scriptdir = $(tooldir)/lib
  52.  
  53.  
  54. INSTALL = `cd $(srcdir); pwd`/../install.sh -c
  55. INSTALL_PROGRAM = $(INSTALL)
  56. INSTALL_DATA = $(INSTALL)
  57. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  58. INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
  59.  
  60. AR = ar
  61. AR_FLAGS = qv
  62. CC = cc
  63. CFLAGS = -g
  64. MAKEINFO = makeinfo
  65. TEXI2DVI = texi2dvi
  66. RANLIB = ranlib
  67. CC_FOR_BUILD=$(CC)
  68. BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
  69. LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ;  else echo flex ; fi`
  70.  
  71. # Seach path to override the default search path for -lfoo libraries.
  72. # If LIB_PATH is empty, the ones in the script (if any) are left alone.
  73. # (The default is usually /lib: usr/lib: /usr/local/lib, unless building
  74. # a cross-linker, in which case the default is empty.  See genscripts.dos.)
  75. # Otherwise, they are replaced with the ones given in LIB_PATH,
  76. # which may have the form: LIB_PATH=/lib: /usr/local/lib
  77. LIB_PATH =
  78.  
  79. # Additional libraries which are used when ld is built native.  This
  80. # is set by some host makefile fragments.
  81. NATIVE_LIB_DIRS =
  82.  
  83. BASEDIR = $(srcdir)/..
  84. BFDDIR = $(BASEDIR)/bfd
  85. INCDIR    = $(BASEDIR)/include
  86. INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
  87. DEP = mkdep
  88.  
  89. # What version of the manual to build
  90. DOCVER = gen
  91.  
  92. # Where to find texinfo.tex to format docn with TeX
  93. TEXIDIR = $(srcdir)/../texinfo
  94.  
  95. # Where to find other docs needed to format with TeX
  96. TEXINPUTS = $(TEXIDIR): $(BFDDIR)/doc: $(srcdir)
  97.  
  98. # Whether to get roff to put indexing entries on stderr
  99. TEXI2OPT =
  100. # You neeed this to generate ld-index.ms (or .mm or .me)
  101. # TEXI2OPT = -i
  102.  
  103. TEXI2ROFF=texi2roff
  104.  
  105. # Which roff program to use to generate index for texi2roff'd doc
  106. ROFF = groff
  107.  
  108. #stuff for self hosting (can be overridden in config file).
  109. HOSTING_CRT0 = /lib/crt0.o
  110. HOSTING_LIBS = `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi`  -lc
  111. HOSTING_EMU = -m $(EMUL)
  112.  
  113. # These were used by `make check-cdtest'
  114. #
  115. #CXX = `if [ -f ../gcc/xgcc ] ; then \
  116. #            echo ../gcc/xgcc -B../gcc/; \
  117. #        else echo gcc; \
  118. #        fi`
  119. #CXXFLAGS = -fgnu-linker
  120. #
  121. # FIX_ME: using ../gcc/xgcc breaks the cdtest. 
  122. #CXX = g++
  123.  
  124. # Setup the testing framework, if you have one
  125. EXPECT = `if [ -f $$r/../expect/expect ] ; \
  126.     then echo $$r/../expect/expect ; \
  127.     else echo expect ; fi`
  128.  
  129. RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
  130.     then echo $${srcroot}/../dejagnu/runtest ; \
  131.     else echo runtest ; fi`
  132.  
  133. RUNTESTFLAGS =
  134.  
  135. CC_FOR_TARGET = ` \
  136.   if [ -f $$r/../gcc/Makefile ] ; then \
  137.     if [ -f $$r/../newlib/Makefile ] ; then \
  138.       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
  139.     else \
  140.       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
  141.     fi; \
  142.   else \
  143.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  144.       echo $(CC); \
  145.     else \
  146.       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  147.     fi; \
  148.   fi`
  149.  
  150. CXX = gcc
  151. CXX_FOR_TARGET = ` \
  152.   if [ -f $$r/../gcc/Makefile ] ; then \
  153.     if [ -f $$r/../newlib/Makefile ] ; then \
  154.       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
  155.     else \
  156.       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
  157.     fi; \
  158.   else \
  159.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  160.       echo $(CXX); \
  161.     else \
  162.       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  163.     fi; \
  164.   fi`
  165.  
  166. # go directly to ld.new in case this ld isn't capable of
  167. # linking native object on this host.  It can be renamed on
  168. # install.
  169. LD_PROG    = ld.new
  170.  
  171. all: $(LD_PROG)
  172. .PHONY: all
  173.  
  174. ### Host, target, and site specific Makefile fragments come in here.
  175. CC = gcc
  176. EMUL=go32
  177. EMULATION_OFILES=ego32.o ei386aout.o
  178. ####
  179.  
  180. LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) 
  181.  
  182. # The .cc suffix was used by `make check-cdtest'.
  183.  
  184. .SUFFIXES: .y $(SUFFIXES) .cc
  185.  
  186. # Suppress smart makes who think they know how to automake Yacc files
  187. .y.c:
  188.  
  189. # This rule was used for the check-cdtest target.
  190. #.cc.o:
  191. #    $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
  192.  
  193. ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
  194. .c.o:
  195.     $(CC) -c $(ALL_CFLAGS) $<
  196.  
  197. # for self hosting
  198. BFDLIB = ../bfd/libbfd.a
  199. LIBIBERTY = ../libiberty/libiberty.a
  200.  
  201. ALL_EMULATIONS = elnk960.o esun3.o ei386aout.o ego32.o evsta.o \
  202.     em88kbcs.o ea29k.o enews.o ehp300bsd.o ehp3hpux.o \
  203.     eh8300.o eh8300h.o eebmon29k.o esun4.o egld960.o \
  204.     em68kcoff.o est2000.o esa29200.o ei386mach.o \
  205.     evanilla.o ei386coff.o ez8ksim.o emipslit.o ei386bsd.o \
  206.     emipsbig.o emipsbsd.o emipsidt.o evax.o eh8500.o \
  207.     eh8500b.o eh8500s.o eh8500c.o eh8500m.o \
  208.     ehppaelf.o emipsidtl.o esh.o eelf_i386.o ealpha.o \
  209.     ei386lynx.o em68klynx.o esparclynx.o ecoff_sparc.o \
  210.     eelf32ppc.o ei386go32.o em68kaout.o ei386linux.o \
  211.     eelf32_sparc.o eelf64_sparc.o eriscix.o eelf32bmip.o eelf32lmip.o
  212.  
  213. CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
  214.     ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
  215.     mri.c
  216.  
  217. HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
  218.     ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
  219.     ldwrite.h mri.h
  220.  
  221. GENERATED_CFILES = ldgram.c ldlex.c
  222. GENERATED_HFILES = ldgram.h ldemul-list.h
  223.  
  224. OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
  225.     ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o \
  226.     ldfile.o ${EMULATION_OFILES}
  227.  
  228. LINTSOURCES = $(CFILES) $(GENERATED_CFILES) e*.c
  229.  
  230. STAGESTUFF = *.o ldscripts/* e*.c
  231.  
  232. info: ld.info
  233. .PHONY: info
  234.  
  235. ldgram.c: ldgram.y
  236.     $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
  237.     mv -f y.tab.c ldgram.c
  238.     mv -f y.tab.h ldgram.h
  239.  
  240. # Separate from ldgram.c so that a parallel make doesn't try to build
  241. # both ldgram.c and ldgram.h simultaneously.
  242. ldgram.h: ldgram.c
  243.  
  244. # EMUL is the name of a file in the emulparams subdir, without the .sh.
  245. ldmain.o: ldmain.c 
  246.       $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION=\"$(EMUL)\" -DSCRIPTDIR=\".\" $(CFLAGS) $< 
  247.  
  248. not-ldemul-list.h: Makefile
  249.     (echo "/* This file is automatically generated.  DO NOT EDIT! */";\
  250.     for f in `echo " " ${EMULATION_OFILES} "" \
  251.      | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
  252.         echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
  253.     done;\
  254.     echo "";\
  255.     echo "#define EMULATION_LIST \\";\
  256.     for f in `echo " " ${EMULATION_OFILES} "" \
  257.      | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
  258.         echo "  &ld_$${f}_emulation, \\"; \
  259.     done;\
  260.     echo "  0") >ldemul-tmp.h
  261.     mv ldemul-tmp.h ldemul-list.h
  262.  
  263. ldlex.c: ldlex.l
  264.     $(LEX) -I -Cem $(srcdir)/ldlex.l
  265.     -sed -e '/^int.*free();/d' \
  266.          -e '/^char.*malloc();/d' \
  267.          -e 's/malloc/xmalloc/g' \
  268.       < lex.yy.c > ldlex.c.new
  269.     -rm lex.yy.c
  270.     mv ldlex.c.new ./ldlex.c
  271.  
  272. # These all start with e so 'make clean' can find them.
  273.  
  274. GENSCRIPTS = sh.exe $(srcdir)/genscripts.dos ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
  275. GEN_DEPENDS = $(srcdir)/genscripts.dos $(srcdir)/emultempl/stringify.sed
  276.  
  277. esun4.c: $(srcdir)/emulparams/sun4.sh \
  278.   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  279.     ${GENSCRIPTS} sun4
  280. esun3.c: $(srcdir)/emulparams/sun3.sh \
  281.   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  282.     ${GENSCRIPTS} sun3
  283. evsta.c: $(srcdir)/emulparams/vsta.sh \
  284.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  285.     ${GENSCRIPTS} vsta
  286. ego32.c: $(srcdir)/emulparams/go32.sh \
  287.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  288.     ${GENSCRIPTS} go32
  289. enews.c: $(srcdir)/emulparams/news.sh \
  290.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  291.     ${GENSCRIPTS} news
  292. evax.c: $(srcdir)/emulparams/vax.sh \
  293.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  294.     ${GENSCRIPTS} vax
  295. ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
  296.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  297.     ${GENSCRIPTS} hp300bsd
  298. ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
  299.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  300.     ${GENSCRIPTS} hp3hpux
  301. ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
  302.   $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
  303.     ${GENSCRIPTS} hppaelf
  304. ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
  305.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  306.     ${GENSCRIPTS} i386aout
  307. ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
  308.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
  309.     ${GENSCRIPTS} i386go32
  310. ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
  311.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  312.     ${GENSCRIPTS} i386mach
  313. eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
  314.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
  315.     ${GENSCRIPTS} ebmon29k
  316. esa29200.c: $(srcdir)/emulparams/sa29200.sh \
  317.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
  318.     ${GENSCRIPTS} sa29200
  319. ea29k.c: $(srcdir)/emulparams/a29k.sh \
  320.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
  321.     ${GENSCRIPTS} a29k
  322. em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
  323.   $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
  324.     ${GENSCRIPTS} m88kbcs
  325. eh8300.c: $(srcdir)/emulparams/h8300.sh \
  326.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
  327.     ${GENSCRIPTS} h8300
  328. eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
  329.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
  330.     ${GENSCRIPTS} h8300h
  331. eh8500.c: $(srcdir)/emulparams/h8500.sh \
  332.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
  333.     ${GENSCRIPTS} h8500
  334. eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
  335.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
  336.     ${GENSCRIPTS} h8500b
  337. eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
  338.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
  339.     ${GENSCRIPTS} h8500c
  340. eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
  341.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
  342.     ${GENSCRIPTS} h8500m
  343. eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
  344.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
  345.     ${GENSCRIPTS} h8500s
  346. esh.c: $(srcdir)/emulparams/sh.sh \
  347.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
  348.     ${GENSCRIPTS} sh
  349. est2000.c: $(srcdir)/emulparams/st2000.sh \
  350.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
  351.     ${GENSCRIPTS} st2000
  352. ez8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
  353.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
  354.     ${GENSCRIPTS} z8ksim
  355. evanilla.c: $(srcdir)/emulparams/vanilla.sh \
  356.   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
  357.     ${GENSCRIPTS} vanilla
  358. elnk960.c: $(srcdir)/emulparams/lnk960.sh \
  359.   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  360.     ${GENSCRIPTS} lnk960
  361. egld960.c: $(srcdir)/emulparams/gld960.sh \
  362.   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  363.     ${GENSCRIPTS} gld960
  364. egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
  365.   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  366.     ${GENSCRIPTS} gld960coff
  367. em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
  368.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
  369.     ${GENSCRIPTS} m68kcoff
  370. em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
  371.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
  372.     ${GENSCRIPTS} m68klynx
  373. ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
  374.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
  375.     ${GENSCRIPTS} i386coff
  376. ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
  377.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
  378.     ${GENSCRIPTS} i386lynx
  379. emipslit.c:  $(srcdir)/emulparams/mipslit.sh \
  380.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  381.     ${GENSCRIPTS} mipslit
  382. ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
  383.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  384.     ${GENSCRIPTS} i386bsd
  385. emipsbig.c:  $(srcdir)/emulparams/mipsbig.sh \
  386.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  387.     ${GENSCRIPTS} mipsbig
  388. emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
  389.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
  390.     ${GENSCRIPTS} mipsbsd
  391. emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
  392.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  393.     ${GENSCRIPTS} mipsidt
  394. emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
  395.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  396.     ${GENSCRIPTS} mipsidtl
  397. eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
  398.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  399.     ${GENSCRIPTS} elf_i386
  400. eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
  401.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  402.     ${GENSCRIPTS} elf32bmip
  403. eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
  404.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  405.     ${GENSCRIPTS} elf32lmip
  406. ealpha.c: $(srcdir)/emulparams/alpha.sh \
  407.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
  408.     ${GENSCRIPTS} alpha
  409. ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
  410.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
  411.     ${GENSCRIPTS} coff_sparc
  412. esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
  413.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
  414.     ${GENSCRIPTS} sparclynx
  415. eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
  416.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  417.     ${GENSCRIPTS} elf32ppc
  418. eriscix.c: $(srcdir)/emulparams/riscix.sh \
  419.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  420.     ${GENSCRIPTS} riscix
  421. em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
  422.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  423.     ${GENSCRIPTS} m68kaout
  424. ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
  425.   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  426.     ${GENSCRIPTS} i386linux
  427. eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
  428.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  429.     ${GENSCRIPTS} elf32_sparc
  430. eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
  431.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  432.     ${GENSCRIPTS} elf64_sparc
  433.  
  434. epc532machaout.c: $(srcdir)/emulparams/pc532machaout.sh \
  435.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  436.     ${GENSCRIPTS} pc532machaout
  437.  
  438. enetbsd532.c: $(srcdir)/emulparams/netbsd532.sh \
  439.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  440.     ${GENSCRIPTS} netbsd532
  441.  
  442. $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
  443.     $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
  444.  
  445. # The generated emulation files mostly have the same dependencies.
  446. $(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
  447.   ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \
  448.   ldctor.h ldexp.h ldlang.h
  449.  
  450. # These targets are for the dejagnu testsuites. The file site.exp 
  451. # contains global variables that all the testsuites will use.
  452.  
  453. site.exp: ./config.status Makefile
  454.     @echo "Making a new config file..."
  455.     @rm -f ./tmp?
  456.     @touch site.exp
  457.     @mv site.exp site.bak
  458.     @echo "## variables are automatically generated by make ##" > ./tmp0
  459.     @echo "# Do not edit here. If you wish to override these" >> ./tmp0
  460.     @echo "# values, add them to the last section" >> ./tmp0
  461.     @echo "# HOST AND TARGET INFO" >> ./tmp0
  462.     @echo "set host_os $(host_os)" >> ./tmp0
  463.     @echo "set host_alias $(host_alias)" >> ./tmp0
  464.     @echo "set host_cpu $(host_cpu)" >> ./tmp0
  465.     @echo "set host_vendor $(host_vendor)" >> ./tmp0
  466.     @echo "set target_os $(target_os)" >> ./tmp0
  467.     @echo "set target_alias $(target_alias)" >> ./tmp0
  468.     @echo "set target_cpu $(target_cpu)" >> ./tmp0
  469.     @echo "set target_vendor $(target_vendor)" >> ./tmp0
  470.     @echo "set host_triplet $(host_canonical)" >> ./tmp0
  471.     @echo "set target_triplet $(target_canonical)" >> ./tmp0
  472.     @echo "# DIRECTORY INFO" >> ./tmp0
  473.     @echo "set objdir `pwd`" >> ./tmp0
  474.     @echo "" >> ./tmp0    
  475.     @echo "# LD DEPENDENCIES" >> ./tmp0    
  476.     @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
  477.     @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
  478.     @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
  479.     @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
  480.     @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
  481.     @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
  482.     @echo "" >> ./tmp0    
  483.     @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
  484.     @cat ./tmp0 > site.exp
  485.     @cat site.bak | sed \
  486.             -e '1,/^## Variables generated by.*##/ d' >> site.exp
  487.     -@rm -f ./tmp?
  488.  
  489. check: site.exp
  490.     r=`pwd`; export r; \
  491.     srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
  492.     EXPECT=${EXPECT} ; export EXPECT ; \
  493.     if [ -f $$r/../expect/expect ] ; then  \
  494.        TCL_LIBRARY=$${srcroot}/../tcl/library ; \
  495.        export TCL_LIBRARY ; \
  496.     else true ; fi ; \
  497.     $(RUNTEST) --tool ld --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
  498.       CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
  499.       CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)"
  500.  
  501. installcheck:
  502. .PHONY: check installcheck
  503.  
  504. # Rules for testing by relinking ld itself.
  505. # A similar test is in the testsuite.  This target is for ease of use
  506. # when porting ld.
  507.  
  508. ld-partial.o: ld.new
  509.     go32 ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
  510. ld1: ld-partial.o
  511.     go32 ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  512.  
  513. ld1-full: ld.new
  514.     go32 ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  515.  
  516. ld2: ld1
  517.     go32 ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  518.  
  519. ld3: ld2
  520.     go32 ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  521.  
  522. bootstrap: ld3
  523.     cmp ld2 ld3
  524.  
  525. .PHONY: bootstrap
  526.  
  527. # A test program for C++ constructors and destructors.
  528. # This test is now in the testsuite.
  529. #
  530. #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
  531. #    ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
  532. #      cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
  533. #
  534. #cdtest.out: cdtest
  535. #    ./cdtest > cdtest.tmp
  536. #    mv cdtest.tmp cdtest.out
  537. #
  538. #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
  539. #    ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
  540. #      cdtest-bar.o cdtest-foo.o
  541. #
  542. #cdtest-ur: cdtest-ur.o
  543. #    ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
  544. #      $(HOSTING_LIBS)
  545. #
  546. #cdtest-ur.out: cdtest-ur
  547. #    ./cdtest-ur > cdtest-ur.tmp
  548. #    mv cdtest-ur.tmp cdtest-ur.out
  549. #
  550. #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
  551. #    diff $(srcdir)/cdtest.exp cdtest.out
  552. #    diff $(srcdir)/cdtest.exp cdtest-ur.out
  553. #
  554. #.PHONY: check-cdtest
  555.  
  556. # END OF CHECK TARGETS
  557.  
  558. # DOCUMENTATION TARGETS
  559. # Manual configuration file; not usually attached to normal configuration,
  560. # because almost all configs use "gen" version of manual.
  561. #  Set DOCVER above to change.
  562. configdoc.texi:    ${DOCVER}-doc.texi
  563.     ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
  564.     ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
  565.     cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
  566.  
  567. # TeX output
  568. dvi: ld.dvi
  569. ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
  570.     TEXINPUTS=$(BFDDIR)/doc: $$TEXINPUTS $(TEXI2DVI) $(srcdir)/ld.texinfo
  571.  
  572. ldint.dvi: $(srcdir)/ldint.texinfo
  573.     $(TEXI2DVI) $(srcdir)/ldint.texinfo
  574.  
  575. # info file for online browsing
  576. ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
  577.     $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
  578.  
  579. ldint.info: $(srcdir)/ldint.texinfo
  580.     $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
  581.  
  582. .PHONY: dvi
  583.  
  584. #separate targets for "ms", "me", and "mm" forms of roff doc
  585. # Try to use a recent texi2roff.  v2 was put on prep in jan91.
  586. # If you want an index, see texi2roff doc for postprocessing 
  587. # and add -i to texi2roff invocations below.
  588. # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
  589. #    correspondint -e lines when later texi2roff's are current)
  590. # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
  591. # + @c's deleted explicitly because texi2roff sees texinfo commands in them
  592. # + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
  593. # + @alphaenumerate is ridiculously new, turned into @enumerate
  594.  
  595. ld.ms: $(srcdir)/ld.texinfo
  596.     sed -e '/\\input texinfo/d' \
  597.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  598.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  599.         -e '/^@c/d' \
  600.         -e 's/{.*,,/{/' \
  601.         -e 's/@ / /g' \
  602.         -e 's/^@alphaenumerate/@enumerate/g' \
  603.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  604.         $(srcdir)/ld.texinfo | \
  605.     $(TEXI2ROFF) $(TEXI2OPT) -ms | \
  606.     sed -e 's/---/\\(em/g' \
  607.         >>ld.ms 
  608.  
  609. # index for roff output
  610. ld-index.ms: ld.ms
  611.     $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
  612.         sed -e '/: warning: /d' | \
  613.         texi2index >ld-index.ms
  614.  
  615. # roff output (-mm)
  616. ld.mm: $(srcdir)/ld.texinfo
  617.     sed -e '/\\input texinfo/d' \
  618.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  619.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  620.         -e '/^@c/d' \
  621.         -e 's/{.*,,/{/' \
  622.         -e '/@noindent/d' \
  623.         -e 's/@ / /g' \
  624.         -e 's/^@alphaenumerate/@enumerate/g' \
  625.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  626.         $(srcdir)/ld.texinfo | \
  627.     $(TEXI2ROFF) $(TEXI2OPT) -mm | \
  628.     sed -e 's/---/\\(em/g' \
  629.     >ld.mm 
  630.  
  631. # index for roff output
  632. ld-index.mm: ld.mm
  633.     $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
  634.         sed -e '/: warning: /d' | \
  635.         texi2index >ld-index.mm
  636.  
  637. # roff output (-me)
  638. ld.me: $(srcdir)/ld.texinfo
  639.     sed -e '/\\input texinfo/d' \
  640.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  641.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  642.         -e '/^@c/d' \
  643.         -e 's/{.*,,/{/' \
  644.         -e 's/@ / /g' \
  645.         -e 's/^@alphaenumerate/@enumerate/g' \
  646.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  647.         $(srcdir)/ld.texinfo | \
  648.     $(TEXI2ROFF) $(TEXI2OPT) -me | \
  649.     sed -e 's/---/\\(em/g' \
  650.         >>ld.me 
  651.  
  652. # index for roff output
  653. ld-index.me: ld.me
  654.     $(ROFF) -me ld.me 2>&1 1>/dev/null | \
  655.         sed -e '/: warning: /d' | \
  656.         texi2index >ld-index.me
  657.  
  658. stage1:    force
  659.     -mkdir stage1
  660.     -mv -f $(STAGESTUFF) $(LD_PROG) stage1
  661.     -(cd stage1 ; ln -s $(LD_PROG) ld)
  662.  
  663. stage2:    force
  664.     -mkdir stage2
  665.     -mv -f $(STAGESTUFF) $(LD_PROG) stage2
  666.     -(cd stage2 ; ln -s $(LD_PROG) ld)
  667.  
  668. stage3:    force
  669.     -mkdir stage3
  670.     -mv -f $(STAGESTUFF) $(LD_PROG) stage3
  671.     -(cd stage3 ; ln -s $(LD_PROG) ld)
  672.  
  673. against = stage2
  674.  
  675. comparison: force
  676.     for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
  677.  
  678. de-stage1: force
  679.     -(cd stage1 ; mv -f * ..)
  680.     -rm ld
  681.     -rmdir stage1
  682.  
  683. de-stage2: force
  684.     -(cd stage2 ; mv -f * ..)
  685.     -rm ld
  686.     -rmdir stage2
  687.  
  688. de-stage3: force
  689.     -(cd stage3 ; mv -f * ..)
  690.     -rm ld
  691.     -rmdir stage3
  692.  
  693. .PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
  694.  
  695. # Stuff that should be included in a distribution:
  696. LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
  697. diststuff: $(LDDISTSTUFF)
  698.  
  699. mostlyclean:
  700.     -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
  701.     -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out cdtest.tmp
  702.     -rm -f cdtest-ur cdtest-ur.out cdtest-ur.tmp
  703.     -rm -f $(GENERATED_CFILES) $(GENERATED_HFILES)
  704.     -rm -fr tmpdir
  705. clean: mostlyclean
  706.     -rm -f $(LD_PROG) configdoc.texi
  707. distclean:
  708.     -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp site.bak \
  709.         $(STAGESTUFF) ld.?? ld.??s ld.toc ld.aux ld.log ldlex.[qp] \
  710.         $(LD_PROG) ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out \
  711.         configdoc.texi tmpdir
  712. realclean: clean distclean
  713.     -rm -f $(LDDISTSTUFF)
  714.  
  715. .PHONY: diststuff mostlyclean clean distclean realclean
  716.  
  717. lintlog: $(LINTSOURCES) Makefile
  718.     $(LINT) -abhxzn  $(LINTFLAGS)  $(LINTSOURCES) \
  719. | grep -v "pointer casts may be troublesome" \
  720. | grep -v "possible pointer alignment problem" \
  721. | grep -v "ignore" \
  722. | grep -v "conversion from long may lose accuracy" \
  723. | grep -v "warning: constant argument to NOT" \
  724. | grep -v "enumeration type clash, operator CAST" \
  725. | grep -v "warning: constant in conditional context"\
  726. | grep -v "archive\.c"
  727.  
  728.  
  729. TAGS:
  730.     etags -t $(srcdir)/*.[chly] *.[chly]
  731.  
  732.  
  733. install: 
  734.     $(INSTALL_XFORM) ld.new $(bindir)/ld
  735.     $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
  736.     for f in ldscripts/*; do \
  737.       $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
  738.     done
  739.     -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
  740.       rm -f $(tooldir)/bin/ld; \
  741.       ln $(bindir)/$$n $(tooldir)/bin/ld >/dev/null 2>/dev/null \
  742.        || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
  743.  
  744. install-info: ld.info
  745.     if [ -r ld.info ]; then \
  746.       dir=. ; \
  747.     else \
  748.       dir=$(srcdir) ; \
  749.     fi ; \
  750.     for i in `cd $$dir ; echo ld.info*` ; do \
  751.         $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
  752.     done
  753.  
  754. clean-info:
  755.     -rm -rf *.info*
  756.  
  757. .PHONY: install install-info clean-info
  758.  
  759. # Targets to rebuild dependencies in this Makefile.
  760. # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
  761. .dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES)
  762.     rm -f .dep1
  763.     $(MAKE) DEP=$(DEP) .dep1
  764.     sed -f dep.sed <.dep1 >.dep
  765.  
  766. # This rule really wants a mkdep that runs "gcc -MM".
  767. .dep1: $(CFILES) $(GENERATED_CFILES)
  768.     rm -f .dep2
  769.     echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
  770.     $(DEP) -f .dep2 $(ALL_CFLAGS) $?
  771.     $(srcdir)/../move-if-change .dep2 .dep1
  772.  
  773. dep.sed: dep-in.sed config.status
  774.     sed <$(srcdir)/dep-in.sed >dep.sed    \
  775.         -e 's!@INCDIR@!$(INCDIR)!'    \
  776.         -e 's!@srcdir@!$(srcdir)!'
  777.  
  778. dep: .dep
  779.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
  780.     cat .dep >> tmp-Makefile
  781.     $(srcdir)/../move-if-change tmp-Makefile Makefile
  782.  
  783. dep-in: .dep
  784.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
  785.     cat .dep >> tmp-Makefile.in
  786.     $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
  787.  
  788. .PHONY: dep dep-in
  789.  
  790. # Dummy target to force execution of dependent targets.
  791. #
  792. force:
  793.  
  794. .PHONY: force
  795.  
  796. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  797.     sh.exe ./config.status
  798.  
  799. # What appears below is generated by a hacked mkdep using gcc -MM.
  800.  
  801. # DO NOT DELETE THIS LINE -- mkdep uses it.
  802. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  803.  
  804. ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  805.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  806.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
  807.   ldgram.h ldmain.h ldctor.h
  808. ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  809.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  810.   config.h ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h \
  811.   ldmain.h ldemul-list.h
  812. ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  813.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  814.   $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
  815.   ldgram.h ldlang.h
  816. ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  817.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  818.   ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
  819.   ldlex.h ldemul.h
  820. ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  821.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  822.   $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
  823.   ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
  824.   ldctor.h ldfile.h
  825. ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  826.   ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
  827.   ldemul.h ldlex.h ldfile.h ldctor.h
  828. ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  829.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  830.   ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
  831.   ldfile.h
  832. ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  833.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  834.   ld.h ldver.h ldemul.h ldmain.h
  835. ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  836.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  837.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
  838.   ldmisc.h ldgram.h ldmain.h
  839. lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  840.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  841.   $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h ld.h \
  842.   ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
  843.   ldfile.h ldver.h
  844. mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
  845.   ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
  846.   ldlang.h ldmisc.h mri.h ldgram.h
  847. ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  848.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  849.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
  850.   ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
  851. ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h ../bfd/sysdep.h \
  852.   $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h ldexp.h \
  853.   ldlang.h ldfile.h ldlex.h ldmain.h
  854.  
  855. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  856.